//
//  HBNovelModel.m
//  HeartBeat
//
//  Created by karong on 2023/8/23.
//

#import "HBNovelModel.h"


@implementation HBNovelModel
+ (NSDictionary *)mj_replacedKeyFromPropertyName {
    return @{@"desc":@"description"};
}

+ (NSDictionary *)mj_objectClassInArray {
    return @{@"guess_like":NSClassFromString(@"HBNovelModel")};
}

- (NSInteger)book_id {
    NSInteger t = 0;
    if (_book_id > 0) {
        t=_book_id;
    }else if (_id > 0) {
        t=_id;
    }
    return t;
}

- (NSString *)author {
    if (KIsNullOrEmpty(_author)){
        _author = WSLocalized(@"佚名");
    }
    return _author;
}

//- (HBReadCatchModel *)saveModel{
//    if (!_saveModel) {
//        _saveModel = [HBReadCatchModel new];
//        _saveModel.bookId = self.book_id;
//        _saveModel.bThumb = self.thumb;
//        _saveModel.bTitle = self.name;
//        _saveModel.author = self.author_name;
//        _saveModel.isEnd = self.finish;
//        _saveModel.is_vip = self.show_vip_tag;
//    }
//    return _saveModel;
//}

- (NSInteger)show_vip_tag {
    return _show_vip_tag || _is_vip;
}
@end
